package com.woniu.uums.service;

import com.woniu.common.utils.PageParam;
import com.woniu.common.utils.ResponseData;
import com.woniu.uums.dto.*;
import com.woniu.uums.pojo.ZyManage;

/**
 * packageName com.woniu.uums.service
 *
 * @author zxyang3636
 * @version JDK 8
 * @className AuthorityService
 * @date 2024/8/12
 * @description TODO
 */
public interface AuthorityService {
    ResponseData<?> selRole();

    ResponseData<?> selAllMenu();

    ResponseData<?> selDefaultSelected(String roleId);

    ResponseData<?> updateRoleMenu(MenuRoleUpdateDTO menuRoleUpdateDTO);

    ResponseData<?> selRepPath();

    ResponseData<?> selectReqPathByRoleId(String roleId);

    ResponseData<?> updateRoleReqPath(ReqPathUpdateDTO reqPathUpdateDTO);

    ResponseData<?> userCachePreheating();

    ResponseData<?> requestPathCachePreheating();

    ResponseData<?> selUserByCondition(PageParam<UserQueryDTO> pageParam);

    ResponseData<?> addUser(ManageAddDTO manageAddDTO) throws Exception;

    ResponseData<?> updateManagePwd(ZyManage zyManage);

    ResponseData<?> deleteUser(String manageId);

    ResponseData<?> selManageRoleByMangeId(String manageId);

    ResponseData<?> addManageRole(ManageUpdateRoleDTO manageUpdateRoleDTO) throws InterruptedException;

    ResponseData<?> deleteManageRole(ManageUpdateRoleDTO manageUpdateRoleDTO);
}
